// import bcrypt from 'bcryptjs';
const bcrypt= require('bcryptjs');

let password= 'jaasdsa';

(async ()=>{
   let hash= await  bcrypt.hash(password,10);
   console.log(hash);
})()

let hash= '$2a$10$5Vil4KLmL5Yi5hkYmzyWY.YQ1BUXQmyuERJN9WD/J1iGTTMMsCJ5e';

(async ()=>{
    let result= await  bcrypt.compare(password,hash);
    console.log(result);
 })()